home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / faq / comp / 386bsd_f / part8 < prev    next >
Internet Message Format  |  1994-04-01  |  11KB

  1. Path: bloom-beacon.mit.edu!hookup!news.moneng.mei.com!howland.reston.ans.net!news.cac.psu.edu!news.pop.psu.edu!ctc.com!news.mic.ucla.edu!ux1.lmu.edu!cynjut.ogisd.ess.harris.com!jocas-al.brooks.af.mil!hrd769.brooks.af.mil!not-for-mail
  2. From: burgess@hrd769.brooks.af.mil (Dave Burgess)
  3. Newsgroups: comp.os.386bsd.announce,comp.answers,news.answers
  4. Subject: [comp.os.386bsd] BNR/2 derived BSD for PCs FAQ (Part 8 of 10)
  5. Followup-To: comp.os.386bsd.misc
  6. Date: 31 Mar 1994 21:37:54 -0000
  7. Organization: Armstrong Laboratory, Brooks AFB, TX
  8. Lines: 260
  9. Approved: news-answers-request@MIT.Edu
  10. Distribution: world
  11. Expires: 04/18/94
  12. Message-ID: <386bsd-faq-8-765149856@hrd769.brooks.af.mil>
  13. References: <386bsd-faq-1-765149856@hrd769.brooks.af.mil>
  14. Reply-To: 386bsd-faq@hrd769.brooks.af.mil (386bsd FAQ Maintainer)
  15. NNTP-Posting-Host: hrd769.brooks.af.mil
  16. Xref: bloom-beacon.mit.edu comp.os.386bsd.announce:313 comp.answers:4393 news.answers:17182
  17.  
  18. Posted-By: auto-faq 2.4
  19. Archive-name: 386bsd-faq/part8
  20.  
  21. Section 7.    (System Communication and Network Information)
  22.  
  23. 7.0    Communications
  24.  
  25.     386bsd and its kith support a wide range of communications methods.
  26.     
  27. 7.1    SLIP
  28.  
  29.     Serial Line I/P is supported in all versions of Net/2 derived BSD.
  30.  
  31.     Brian <brian@awfulhak.demon.co.uk> provides us with a rather
  32.     good explanation of some of the hurdles that must be overcome
  33.     for a working slip interface.
  34.  
  35.     The idea is (overview) that you make a serial line connection to 
  36.     the host, set the line discipline, and tell your router to use 
  37.     this interface as your gateway.  You also should set the gateway 
  38.     up as a nameserver.
  39.  
  40.     Sounds easy ? - well it is if you've done it before.
  41.  
  42.     The _usual_ way of doing this is as follows:
  43.  
  44.     Both server and client must know eachothers inet addresses.  Set 
  45.     these up in /etc/hosts with lines saying
  46.         11.22.33.44 host.my.domain.name host
  47.         11.22.33.55 client.my.domain.name client
  48.  
  49.     where 11.22.33.?? is your inet number, and the following name is 
  50.     the full machine name (and is followed by any number of aliases).
  51.  
  52.     SERVER:
  53.        Create a login - usually Sclientname - and run `sliplogin` as 
  54.        its shell.  I've looked at the docs for sliplogin, and it seems
  55.        fairly straightforward.  [Ed.Note - I have; it is.]
  56.        A fairly common problem on the server is an error that is 
  57.        caused by the lack of a 'sliplogin' entry in the /etc/shells
  58.        file.  Be sure to add sliplogin to your shells file.
  59.  
  60.     CLIENT:
  61.       Set up /etc/resolv.conf to say the following (for the nameserver)
  62.         domain client.my.domain.name
  63.         nameserver 11.22.33.55
  64.  
  65.       ** traditional method **
  66.       - Log on to the server.  This is usually done via kermit or some
  67.       such program.
  68.       - Exit the program (or backround it if your line wants to drop 
  69.       once the device is closed).
  70.       - Run `slattach /dev/comport` for whatever "comport" is.  On most
  71.         Net/2 derived systems, this may be either com0, or cua01, or
  72.         whatever the correct name is for your site.
  73.  
  74.       If you run into an error that says 'not configured' in it, your 
  75.       kernel either does not recognize your port (dmesg will verify that)
  76.       or your kernel does not have the slip interface built in.  See 
  77.       below for the latter.  The former could be caused by any one of 
  78.       a dozen problems, including conflicting or incorrectly identified 
  79.       IRQs or port addresses.
  80.  
  81.       - Run `ifconfig inet sl0 clientname servername netmask 0xffffff00`
  82.       - Run `route add default servername`.
  83.       
  84.         "servername" is your server and "clientname" is your client.
  85.         
  86.       It should now be possible to `ping host`
  87.  
  88.     ** my method **
  89.       Configure /etc/remote
  90.       Configure /etc/host.dial
  91.       Run `slip host`.
  92.  
  93.     /etc/remote contains an extended `tip` entry.  /etc/host.dial 
  94.     contains a login script (and is named in /etc/remote).
  95.  
  96.     Oh yes, don't forget to have a line in your kernel config saying
  97.  
  98.     pseudo-device sl 2
  99.  
  100.     Without this line, you may get a 'device not configured' or 
  101.     'TIO...' error because the slip driver is not built into the 
  102.     kernel.
  103.  
  104.     I uploaded the slip package a while ago (to several archives), but 
  105.     was unaware of needing to notify the postmaster.  They've probably 
  106.     all been removed now.  Slip packages are available from many FTP 
  107.     sites; use archie to find the site nearest you.
  108.  
  109.  
  110. 7.2    CSLIP
  111.  
  112.     SLIP is included in the NetBSD-0.9 stock kernel and in the source
  113.     tree.  It is also available in FreeBSD.
  114.  
  115.  
  116. 7.3    PPP
  117.  
  118.     Implementations of Point to Point Protocol are also available.  PPP
  119.     should be available in the next major release (0.9+) of NetBSD and 
  120.     in the current release of FreeBSD.
  121.  
  122.     It should also be noted that there is a newsgroup that covers the 
  123.     PPP protocol exclusively.  It is comp.protocols.ppp.
  124.  
  125.  
  126. 7.4    TCP/IP
  127.  
  128.     TCP/IP is an integral part of Net/2 BSD.  There are at least five
  129.     different network card drivers.  TCP/IP is fully supported and is
  130.     available to all users of Net/2 derived BSD systems.  In fact,
  131.     many people believe that this area is one of the primary advantages
  132.     that Net/2 has over Linux.
  133.  
  134.  
  135. 7.5    UUCP
  136.  
  137.     There is an excellent document included in the UUCP directory
  138.     that describes in detail, what needs to be done to get a working
  139.     UUCP for Net/2 BSD systems.  Look in the /usr/src/gnu/libexec/uucp
  140.     directory for more information.  You can also look in the 
  141.     /usr/share/doc/smm/09.uucpimpl and /usr/share/doc/smm/21.uucpnet
  142.     if yours are populated.
  143.  
  144.     
  145. 7.5.1    TIP/CU
  146.  
  147.     First thing you need to do is...
  148.  
  149.         vi /etc/remote
  150.  
  151.     Then remove the two lines at the bottom of the file that mention 
  152.     com1, and com2.  Now add the following lines:
  153.  
  154.         com0:dv=/dev/com0:br#9600:
  155.         com1:dv=/dev/com1:br#9600:
  156.  
  157.     That tells tip/cu where to find your com ports.  Next you need 
  158.     to be logged in as root and do a:
  159.  
  160.         chown uucp.dialer /dev/com0
  161.         chown uucp.dialer /dev/com1
  162.         touch /var/log/aculog
  163.         chown uucp.dialer /var/log/aculog
  164.  
  165.     Make sure that, if you are running newsyslog, you change the 
  166.     owner.group entry in the newsyslog.conf file so that the file
  167.     ownership is maintained correctly.
  168.  
  169.     Then you should be all set, remember "DOS Com1" = com0, and 
  170.     "DOS Com2" = com1.  So, if your modem is at 0x2F8/IRQ=3 and you
  171.     access it as the COM2: port from DOS, you would do..
  172.  
  173.         tip com1
  174.  
  175.     To exit, type <RETURN>~.<RETURN>
  176.  
  177.     Many people have a problem with the lock open: procedure.   
  178.     If you receive the error:
  179.  
  180.     lock open: no such file or directory
  181.     all ports busy
  182.  
  183.     You need to create a directory: /var/spool/lock, owned by uucp.  If
  184.     this file already exists and is owned correctly, make sure that the
  185.     lock file in the directory is deleted.
  186.  
  187.     This answer thanks to (crt@tiamat.umd.umich.edu).
  188.  
  189.  
  190. 7.5.2    What is the magic incantation that allows the modem to dial?
  191.  
  192.     Try 'stty -f /dev/tty0? clocal'.  Change the '?' for whatever 
  193.     character is appropriate for your tty port.  Remember, DOS COM1 = 
  194.     /dev/tty00 and DOS COM2 = /dev/tty01...
  195.  
  196.     Some other things that might cause some problems are the entries
  197.     in the /etc/remotes file.  Try 'com?:dv=/dev/tty0?:br#19200:pa=none'
  198.     and see if that helps.  Remember to replace the '?' with '[01234]'
  199.     as appropriate.
  200.  
  201.  
  202. 7.6    Terminals
  203.  
  204.     Since the target machine for most Net/2 machines is a 386 with 
  205.     no more than a couple of serial ports, most people do not bother 
  206.     with serial terminals.  For most problems, a quick perusal of the 
  207.     man pages for the ttys file and getty are enough to get them 
  208.     started.  Other than that, most terminal problems are limited to
  209.     peculiarities of particular terminals.
  210.  
  211.     One common problem that appears to crop up from time to time is
  212.     which wires need to be connected at each end of the cable.  Most
  213.     cables do not, in fact, pass through all lines.  If your terminal 
  214.     uses XON/XOFF (DC1/DC3) protocol, a cable of the appropriate 
  215.     twist, either straight through or null modem, can have as few as
  216.     three lines connecting the two devices.  Assuming DB-25 connections
  217.     at each end, the lines need to go from 2 to 3, 3 to 2, and 7 to 7.
  218.     These lines are Rx, Tx, and gnd.  Other lines that may or may not
  219.     be required include 4 and 5; and 6, 8, and 20.  Normally, these 
  220.     lines would be connected within the 'hood' of the cable (4 to 5 
  221.     and 6 and 8 to 20) to simulate the functionality of the full 
  222.     blown cable.  While full support for CTS/RTS is not available 
  223.     (yet), other support for the remainder of these lines is available 
  224.     or is being worked on in all Net/2 derived systems.  Without this
  225.     handshaking (particularly pins 6, 8, and 20) your ports may appear
  226.     to be dead.  This is because most of the tty driver for *BSD 
  227.     systems require a Data Carrier Detect to be active before the
  228.     port will work.
  229.  
  230.     For those folks that have hardware flow control working, you need
  231.     to look in the man page for 'stty' and look around for the 
  232.     -clocal and -ctrcrts options.
  233.  
  234.     Once the cable is set up, you will need to make sure that your
  235.     system is ready.  The first thing you will need to do is make all
  236.     of the devices in the /dev/ directory.  A program, called MAKEDEV,
  237.     is available in the /dev directory.  Running this program with 
  238.     the argument 'tty' will make all of the physical tty devices.
  239.  
  240.     With that done, arranging for a 'getty' on the port is the next 
  241.     order of business.  You will need to edit the '/etc/ttys/' file
  242.     and make one of the tty devices available.  If you have 
  243.     connected your terminal to DOS COM1, you will be enabling /dev/tty00.
  244.     Similarly, if you are connected to COM2:, you will be enabling
  245.     /dev/tty01 (see the pattern?).  There are other names for those
  246.     ports as well, but when you are talking about terminals, be sure
  247.     to use the /dev/tty* names.  If not, you will be completely 
  248.     ignored and treated as an outcast because you obviously have not
  249.     done any of your homework.
  250.  
  251.     One of the other common problems with the SIO driver is that 
  252.     people will often disable all handshaking, and then complain that
  253.     they cannot get a reliable connection above 9600 baud.  Handshaking 
  254.     is the solution to most of these problems.
  255.  
  256.  
  257.  
  258. 7.7    Can network attached assets be used by/from NetBSD?
  259.  
  260.     Yes, they can, assuming the machine at the other end of the 
  261.     connections is reasonably cooperative.  The specifics are up to the
  262.     remote machine, but a couple of things that you can start looking
  263.     for that will help are provided below:
  264.  
  265.         -  Ask the system administrator of the machine in question
  266.            if it is OK for you to use whatever it is you need.  This
  267.            is more a matter of manners than a technical issue.
  268.  
  269.         -  For NFS mounted disk drives, make sure that you are not
  270.            prevented from using the assets by the /etc/exports
  271.            (or equivalent) file.  This goes for CD-ROMs as well as
  272.            regular mounted disks.
  273.  
  274.         -  There are a completely different set of concerns for
  275.            tapes and printers.  Each system implements these in
  276.            slightly different ways.  Check with your system manager
  277.            or documentation for more information.
  278.